#!/bin/sh
":"; exec emacs --script "$0" "-Q" "$@" # -*- mode: emacs-lisp; lexical-binding: t; -*-

(message "Hello world")
(message "argv: %S" argv)

(setq my-file-foo "foo")
(defun check-for-foo ()
  (if (file-exists-p my-file-foo)
      (progn (message "yes file 1")
             (message "yes file 2")
             (byte-compile-file my-file-foo))
      (message "no file")))


(check-for-foo)
